package cn.tedu.tmall.basic.service;

import cn.tedu.tmall.common.pojo.po.DistrictSimplePO;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class DistrictService {
    @Autowired
    private IDistrictService service;
    @Test
    void listById(){
        Long id = 0l;
        List<DistrictSimplePO> districtSimplePOS = service.listByParent(id);
        for (DistrictSimplePO districtSimplePO : districtSimplePOS){
            System.out.println(districtSimplePO);
        }
    }
}
